package com.situ.crm2026.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.situ.crm2026.model.Course;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface CourseService {
    Page<Course> findAll(Page<Course> page, Course csb);
    int deleteByIds(List<Integer> ids);
    boolean save(Course course);
    boolean update(Course course);

    // 根据ID获取课程详情
    Course getCourseDetailById(Integer id);

    // 根据课程ID获取预约该课程的会员列表
    List<Map<String, Object>> getMembersByCourseId(Integer courseId);

    //检查课程时间和教室是否冲突,冲突则不允许添加
    boolean hasTimeAndRoomConflict(Course course);

}
